using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace ePlanSysOman
{
  public class ModuleWaitDialog
  {
      public static ModuleWaitDialog newModule2 = new ModuleWaitDialog();//JMR
    private DevExpress.Utils.WaitDialogForm Dlg = new DevExpress.Utils.WaitDialogForm();

    public void CreateWaitDialog(string Caption = "", string Title = "")
    {
      if (Title == "") {


        Dlg = new DevExpress.Utils.WaitDialogForm(Caption);
      } else {
        Dlg = new DevExpress.Utils.WaitDialogForm(Title, Caption);
      }
    }
    public void CloseWaitDialog()
    {
      Dlg.Close();
    }
    public void SetWaitDialogCaption(string fCaption)
    {
      if (Dlg != null) {

        Dlg.Caption = fCaption;
        Dlg.Refresh();
      }
    }
  }
}

